home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMLSSerializer.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  174 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMLSSerializer.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMLSSerializer_h__
  6. #define __gen_nsIDOMLSSerializer_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMDOMConfiguration; /* forward declaration */
  18.  
  19. class nsIDOMLSOutput; /* forward declaration */
  20.  
  21. class nsIDOMLSSerializerFilter; /* forward declaration */
  22.  
  23. class LSException; /* forward declaration */
  24.  
  25.  
  26. /* starting interface:    nsIDOMLSSerializer */
  27. #define NS_IDOMLSSERIALIZER_IID_STR "96ea4792-d362-4c28-a8c2-0337790d648a"
  28.  
  29. #define NS_IDOMLSSERIALIZER_IID \
  30.   {0x96ea4792, 0xd362, 0x4c28, \
  31.     { 0xa8, 0xc2, 0x03, 0x37, 0x79, 0x0d, 0x64, 0x8a }}
  32.  
  33. class NS_NO_VTABLE nsIDOMLSSerializer : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMLSSERIALIZER_IID)
  37.  
  38.   /* readonly attribute nsIDOMDOMConfiguration domConfig; */
  39.   NS_IMETHOD GetDomConfig(nsIDOMDOMConfiguration * *aDomConfig) = 0;
  40.  
  41.   /* attribute DOMString newLine; */
  42.   NS_IMETHOD GetNewLine(nsAString & aNewLine) = 0;
  43.   NS_IMETHOD SetNewLine(const nsAString & aNewLine) = 0;
  44.  
  45.   /* attribute nsIDOMLSSerializerFilter filter; */
  46.   NS_IMETHOD GetFilter(nsIDOMLSSerializerFilter * *aFilter) = 0;
  47.   NS_IMETHOD SetFilter(nsIDOMLSSerializerFilter * aFilter) = 0;
  48.  
  49.   /* boolean write (in nsIDOMNode nodeArg, in nsIDOMLSOutput destination)  raises (LSException); */
  50.   NS_IMETHOD Write(nsIDOMNode *nodeArg, nsIDOMLSOutput *destination, PRBool *_retval) = 0;
  51.  
  52.   /* boolean writeToURI (in nsIDOMNode nodeArg, in DOMString uri)  raises (LSException); */
  53.   NS_IMETHOD WriteToURI(nsIDOMNode *nodeArg, const nsAString & uri, PRBool *_retval) = 0;
  54.  
  55.   /* DOMString writeToString (in nsIDOMNode nodeArg)  raises (DOMException, LSException); */
  56.   NS_IMETHOD WriteToString(nsIDOMNode *nodeArg, nsAString & _retval) = 0;
  57.  
  58. };
  59.  
  60. /* Use this macro when declaring classes that implement this interface. */
  61. #define NS_DECL_NSIDOMLSSERIALIZER \
  62.   NS_IMETHOD GetDomConfig(nsIDOMDOMConfiguration * *aDomConfig); \
  63.   NS_IMETHOD GetNewLine(nsAString & aNewLine); \
  64.   NS_IMETHOD SetNewLine(const nsAString & aNewLine); \
  65.   NS_IMETHOD GetFilter(nsIDOMLSSerializerFilter * *aFilter); \
  66.   NS_IMETHOD SetFilter(nsIDOMLSSerializerFilter * aFilter); \
  67.   NS_IMETHOD Write(nsIDOMNode *nodeArg, nsIDOMLSOutput *destination, PRBool *_retval); \
  68.   NS_IMETHOD WriteToURI(nsIDOMNode *nodeArg, const nsAString & uri, PRBool *_retval); \
  69.   NS_IMETHOD WriteToString(nsIDOMNode *nodeArg, nsAString & _retval); 
  70.  
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  72. #define NS_FORWARD_NSIDOMLSSERIALIZER(_to) \
  73.   NS_IMETHOD GetDomConfig(nsIDOMDOMConfiguration * *aDomConfig) { return _to GetDomConfig(aDomConfig); } \
  74.   NS_IMETHOD GetNewLine(nsAString & aNewLine) { return _to GetNewLine(aNewLine); } \
  75.   NS_IMETHOD SetNewLine(const nsAString & aNewLine) { return _to SetNewLine(aNewLine); } \
  76.   NS_IMETHOD GetFilter(nsIDOMLSSerializerFilter * *aFilter) { return _to GetFilter(aFilter); } \
  77.   NS_IMETHOD SetFilter(nsIDOMLSSerializerFilter * aFilter) { return _to SetFilter(aFilter); } \
  78.   NS_IMETHOD Write(nsIDOMNode *nodeArg, nsIDOMLSOutput *destination, PRBool *_retval) { return _to Write(nodeArg, destination, _retval); } \
  79.   NS_IMETHOD WriteToURI(nsIDOMNode *nodeArg, const nsAString & uri, PRBool *_retval) { return _to WriteToURI(nodeArg, uri, _retval); } \
  80.   NS_IMETHOD WriteToString(nsIDOMNode *nodeArg, nsAString & _retval) { return _to WriteToString(nodeArg, _retval); } 
  81.  
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  83. #define NS_FORWARD_SAFE_NSIDOMLSSERIALIZER(_to) \
  84.   NS_IMETHOD GetDomConfig(nsIDOMDOMConfiguration * *aDomConfig) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomConfig(aDomConfig); } \
  85.   NS_IMETHOD GetNewLine(nsAString & aNewLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewLine(aNewLine); } \
  86.   NS_IMETHOD SetNewLine(const nsAString & aNewLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNewLine(aNewLine); } \
  87.   NS_IMETHOD GetFilter(nsIDOMLSSerializerFilter * *aFilter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilter(aFilter); } \
  88.   NS_IMETHOD SetFilter(nsIDOMLSSerializerFilter * aFilter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilter(aFilter); } \
  89.   NS_IMETHOD Write(nsIDOMNode *nodeArg, nsIDOMLSOutput *destination, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(nodeArg, destination, _retval); } \
  90.   NS_IMETHOD WriteToURI(nsIDOMNode *nodeArg, const nsAString & uri, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteToURI(nodeArg, uri, _retval); } \
  91.   NS_IMETHOD WriteToString(nsIDOMNode *nodeArg, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteToString(nodeArg, _retval); } 
  92.  
  93. #if 0
  94. /* Use the code below as a template for the implementation class for this interface. */
  95.  
  96. /* Header file */
  97. class nsDOMLSSerializer : public nsIDOMLSSerializer
  98. {
  99. public:
  100.   NS_DECL_ISUPPORTS
  101.   NS_DECL_NSIDOMLSSERIALIZER
  102.  
  103.   nsDOMLSSerializer();
  104.  
  105. private:
  106.   ~nsDOMLSSerializer();
  107.  
  108. protected:
  109.   /* additional members */
  110. };
  111.  
  112. /* Implementation file */
  113. NS_IMPL_ISUPPORTS1(nsDOMLSSerializer, nsIDOMLSSerializer)
  114.  
  115. nsDOMLSSerializer::nsDOMLSSerializer()
  116. {
  117.   /* member initializers and constructor code */
  118. }
  119.  
  120. nsDOMLSSerializer::~nsDOMLSSerializer()
  121. {
  122.   /* destructor code */
  123. }
  124.  
  125. /* readonly attribute nsIDOMDOMConfiguration domConfig; */
  126. NS_IMETHODIMP nsDOMLSSerializer::GetDomConfig(nsIDOMDOMConfiguration * *aDomConfig)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* attribute DOMString newLine; */
  132. NS_IMETHODIMP nsDOMLSSerializer::GetNewLine(nsAString & aNewLine)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136. NS_IMETHODIMP nsDOMLSSerializer::SetNewLine(const nsAString & aNewLine)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* attribute nsIDOMLSSerializerFilter filter; */
  142. NS_IMETHODIMP nsDOMLSSerializer::GetFilter(nsIDOMLSSerializerFilter * *aFilter)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146. NS_IMETHODIMP nsDOMLSSerializer::SetFilter(nsIDOMLSSerializerFilter * aFilter)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* boolean write (in nsIDOMNode nodeArg, in nsIDOMLSOutput destination)  raises (LSException); */
  152. NS_IMETHODIMP nsDOMLSSerializer::Write(nsIDOMNode *nodeArg, nsIDOMLSOutput *destination, PRBool *_retval)
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* boolean writeToURI (in nsIDOMNode nodeArg, in DOMString uri)  raises (LSException); */
  158. NS_IMETHODIMP nsDOMLSSerializer::WriteToURI(nsIDOMNode *nodeArg, const nsAString & uri, PRBool *_retval)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* DOMString writeToString (in nsIDOMNode nodeArg)  raises (DOMException, LSException); */
  164. NS_IMETHODIMP nsDOMLSSerializer::WriteToString(nsIDOMNode *nodeArg, nsAString & _retval)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168.  
  169. /* End of implementation class template. */
  170. #endif
  171.  
  172.  
  173. #endif /* __gen_nsIDOMLSSerializer_h__ */
  174.